import config from './config'

export const api = {
    // response code
    CODE_SUCCESS: 1,
    CODE_ERR: 0,
    // page
    DEFAULT_PAGE_NUM: 1,
    DEFAULT_PAGE_SIZE: 10,
    // api const
    LOGIN: config.baseURL + '/login',
    UPDATE_PWD: config.baseURL + '/updatePassword',
    LOGOUT: config.baseURL + '/logout',
    UPLOAD_PDF_URL: config.baseURL + '/uploadPdf',
    UPLOAD_IMG_URL: config.baseURL + '/uploadImage',
    IMG_RECO_URL: config.baseURL + '/imageRecognition',
    GET_RECO_RESULT_URL: config.baseURL + '/getRecoResult/{resId}',
    GET_UPLOAD_LIST: config.baseURL + '/getUploadList/{pageNum}/{pageSize}',
    UPDATE_REMARK: config.baseURL + '/updateRemark/{id}',
    DEL_DATA: config.baseURL + '/deleteData/{id}',
    DOWNLOAD_IMAGE: config.baseURL + '/exportData',
    GET_STATUS: config.wsURL + '/ws/{sid}'
}
